package com.zaoniao.enstudy.infrastructure.convert;

import com.zaoniao.enstudy.domain.entity.VocabularyWords;
import com.zaoniao.enstudy.infracore.web.PagedGridResult;
import com.zaoniao.enstudy.infrastructure.po.UserVocabularyWordsPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * 词汇表单词明细对象转换器.
 *
 * @author llb
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserVocabularyWordsCrt {

    UserVocabularyWordsCrt INSTANCE = Mappers.getMapper(UserVocabularyWordsCrt.class);

    UserVocabularyWordsPo do2po(VocabularyWords userVocabularyWords);

    PagedGridResult<VocabularyWords> po2doPage(PagedGridResult<UserVocabularyWordsPo> pagedGridResult);
}
